<div class="easyui-panel" title="" style="width:436px">
    <div style="padding:10px 60px 10px 60px">

        <table cellpadding="5">
            <tr>
                <td>岗位名称:</td>
                <td><input id="stat_name" class="easyui-textbox" type="text" name="stat_name" data-options="required:true"/></td>
            </tr>

            <tr>
                <td>描述:</td>
                <td><input id="description" class="easyui-textbox" name="description" data-options="multiline:true" style="height:60px"/></td>

            </tr>

        </table>
        <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="submit_station()">提交</a></td>


    </div>
</div>
        <script>
            function submit_station(){
                var stat_name = $("#stat_name").val();
                var description = $("#description").val();

                if(stat_name==null || stat_name == ""){
                    alert("请填写岗位名称！");
                }else{
                    $.ajax({
                        url:'<{:U('Station/stationAdd')}>',
                            type: 'POST',
                            data: {
                                stat_name:stat_name,
                                description:description
                    },
                    timeout: 3000,
                            success: function (data) {

                        alert(data);
                        stationStationRefresh();
                        $('#station_stationlist_add_dialog').dialog('close');
                    },
                    async: false
                });

            }
            }
        </script>